from flask import Flask

__author__ = 'WhiteBlue'


class Core(object):
    init_flag = False

    # 全局变量初始化
    @classmethod
    def init(cls, blog_title, blog_info, db_name):
        cls.blog_title = blog_title
        cls.blog_info = blog_info
        cls.db_name = db_name
        cls.init_flag = True

    @classmethod
    def launch(cls):
        cls.app = Flask(__name__)
